#ifndef PIECE_H
#define PIECE_H

#include <QString>

class Piece
{
public:
    enum TYPE{KING, CHE, MA, PAO, XIANG, SHI, BING};
    int row, col, id;
    bool isAlive, red;
    TYPE type;

public:
    Piece();
    void init(int id);
    QString getText();
};

#endif // PIECE_H
